# -*- coding: UTF-8 -*- 
__author__ = 'xiang'


import matplotlib.pyplot as plt

from matplotlib.font_manager import *
import pandas as pd
import numpy as np


matplotlib.rcParams['font.sans-serif'] = ['SimHei']
matplotlib.rcParams['font.family']='sans-serif'

matplotlib.rcParams['axes.unicode_minus'] = False

items = pd.read_json('./linux.json')

job_price = items.groupby('job_position')['job_price'].mean()
job_num = items.groupby('job_position')['job_price'].count()
jd=dict(job_num)
job_price.plot.bar()
plt.title("智联招聘运维薪资统计\n%s"%(jd))
plt.show()


